﻿using System.Collections.Generic;
using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    /// <summary>
    /// 批量插入，修改或删除一个或多个表中的若干行数据。
    /// </summary>
    [ProtoContract(Name = "BatchWriteRowRequest")]
    public class BatchWriteRowRequest
    {
        public BatchWriteRowRequest()
        {

        }
        public BatchWriteRowRequest(List<TableInBatchWriteRowRequest> tables)
        {
            this.Tables = tables;
        }
        /// <summary>
        /// 指定了需要要执行写操作的行信息。
        /// </summary>
        private List<TableInBatchWriteRowRequest> tables = new List<TableInBatchWriteRowRequest>();

        [ProtoMember(1, Name = "tables",IsRequired =true)]
        public List<TableInBatchWriteRowRequest> Tables { get { return tables; } set { tables = value; } }// same indices w.r.t. reques
    }
}
